if exists in string php

30

$a = 'How are you?';

if (strpos($a, 'are') !== false) {
    echo 'true';
}

Comments

Submit
0 Comments